package com.swordget.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author: David
 * @Date: Created in 15:27 2020/5/21
 * @Description: ${DESCRIPTION}
 * @Modified By:
 * @Version: ${VERSION}
 */
@RestController
public class DruidController {


    @GetMapping("/comTest")
    public List<Map<String, String>> druidStat(){

        List<Map<String, String>> list = new ArrayList<>();

        for (int i = 0; i < 10; i++) {
            Map<String, String> map = new HashMap<>();
            map.put("id", "测试"  + i);
            map.put("value", "测试" + i);
            list.add(map);
        }

        return list;

    }
}
